﻿<Window x:Class="MediaLibrary.Controls.GoToWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="GOTO"
        KeyDown="Window_KeyDown"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None"
        BorderBrush="Black"
        BorderThickness="1"
        ResizeMode="NoResize"
        MinHeight="412"
        MaxHeight="412"
        MinWidth="412"
        MaxWidth="412"
        ShowInTaskbar="False"
        Topmost="True">
    <Window.Background>
        <ImageBrush ImageSource="../resources/background2.jpg" />
    </Window.Background>
    
    <Grid Margin="6 0 6 0">
        <Grid.RowDefinitions>
            <RowDefinition Height="55" />
            <RowDefinition Height="28" />
            <RowDefinition Height="*" />
            <RowDefinition Height="55" />
        </Grid.RowDefinitions>
        
        <Rectangle
            Width="{Binding playlistColumn.Width}" 
            Height="{Binding playlistColumn.Height}" 
            Opacity=".8"
            Grid.Row="2"
            Grid.RowSpan="1"
            StrokeThickness="4"
            Fill="Black">
        </Rectangle>

        <Label Grid.Row="0" Grid.ColumnSpan="2" FontSize="20" FontWeight="Bold">Select from Now Playing</Label>

        <TextBox x:Name="mediaSelectorTextBox" Grid.Row="1" Margin="0,0,0,5" KeyUp="mediaSelectorTextBox_KeyUp" TextAlignment="Center" Background="Black" Foreground="White" FontSize="14" Height="28" />

        <ListView x:Name="nowPlayingListView" 
                  MouseDoubleClick="nowPlayingListView_MouseDoubleClick"
                  Background="Transparent"
                  Grid.Row="2" 
                  ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                  ItemContainerStyle="{DynamicResource selectedStyle}"
                  HorizontalContentAlignment="Stretch">
        </ListView>

        <StackPanel Grid.Row="3" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button x:Name="cancelButton" Click="cancelButton_Click" Margin="0 10 6 6" Width="100">Cancel</Button>
        </StackPanel>
    </Grid>
</Window>
